package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecConstructionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecConstructionExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConstructionIdIsNull() {
            addCriterion("construction_id is null");
            return (Criteria) this;
        }

        public Criteria andConstructionIdIsNotNull() {
            addCriterion("construction_id is not null");
            return (Criteria) this;
        }

        public Criteria andConstructionIdEqualTo(Integer value) {
            addCriterion("construction_id =", value, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdNotEqualTo(Integer value) {
            addCriterion("construction_id <>", value, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdGreaterThan(Integer value) {
            addCriterion("construction_id >", value, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("construction_id >=", value, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdLessThan(Integer value) {
            addCriterion("construction_id <", value, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdLessThanOrEqualTo(Integer value) {
            addCriterion("construction_id <=", value, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdIn(List<Integer> values) {
            addCriterion("construction_id in", values, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdNotIn(List<Integer> values) {
            addCriterion("construction_id not in", values, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdBetween(Integer value1, Integer value2) {
            addCriterion("construction_id between", value1, value2, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("construction_id not between", value1, value2, "constructionId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdIsNull() {
            addCriterion("construction_project_id is null");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdIsNotNull() {
            addCriterion("construction_project_id is not null");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdEqualTo(Integer value) {
            addCriterion("construction_project_id =", value, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdNotEqualTo(Integer value) {
            addCriterion("construction_project_id <>", value, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdGreaterThan(Integer value) {
            addCriterion("construction_project_id >", value, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("construction_project_id >=", value, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdLessThan(Integer value) {
            addCriterion("construction_project_id <", value, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("construction_project_id <=", value, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdIn(List<Integer> values) {
            addCriterion("construction_project_id in", values, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdNotIn(List<Integer> values) {
            addCriterion("construction_project_id not in", values, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("construction_project_id between", value1, value2, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("construction_project_id not between", value1, value2, "constructionProjectId");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingIsNull() {
            addCriterion("construction_production_drawing is null");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingIsNotNull() {
            addCriterion("construction_production_drawing is not null");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingEqualTo(String value) {
            addCriterion("construction_production_drawing =", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingNotEqualTo(String value) {
            addCriterion("construction_production_drawing <>", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingGreaterThan(String value) {
            addCriterion("construction_production_drawing >", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingGreaterThanOrEqualTo(String value) {
            addCriterion("construction_production_drawing >=", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingLessThan(String value) {
            addCriterion("construction_production_drawing <", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingLessThanOrEqualTo(String value) {
            addCriterion("construction_production_drawing <=", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingLike(String value) {
            addCriterion("construction_production_drawing like", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingNotLike(String value) {
            addCriterion("construction_production_drawing not like", value, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingIn(List<String> values) {
            addCriterion("construction_production_drawing in", values, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingNotIn(List<String> values) {
            addCriterion("construction_production_drawing not in", values, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingBetween(String value1, String value2) {
            addCriterion("construction_production_drawing between", value1, value2, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionProductionDrawingNotBetween(String value1, String value2) {
            addCriterion("construction_production_drawing not between", value1, value2, "constructionProductionDrawing");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1IsNull() {
            addCriterion("construction_construction1 is null");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1IsNotNull() {
            addCriterion("construction_construction1 is not null");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1EqualTo(String value) {
            addCriterion("construction_construction1 =", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1NotEqualTo(String value) {
            addCriterion("construction_construction1 <>", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1GreaterThan(String value) {
            addCriterion("construction_construction1 >", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1GreaterThanOrEqualTo(String value) {
            addCriterion("construction_construction1 >=", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1LessThan(String value) {
            addCriterion("construction_construction1 <", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1LessThanOrEqualTo(String value) {
            addCriterion("construction_construction1 <=", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1Like(String value) {
            addCriterion("construction_construction1 like", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1NotLike(String value) {
            addCriterion("construction_construction1 not like", value, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1In(List<String> values) {
            addCriterion("construction_construction1 in", values, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1NotIn(List<String> values) {
            addCriterion("construction_construction1 not in", values, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1Between(String value1, String value2) {
            addCriterion("construction_construction1 between", value1, value2, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction1NotBetween(String value1, String value2) {
            addCriterion("construction_construction1 not between", value1, value2, "constructionConstruction1");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2IsNull() {
            addCriterion("construction_construction2 is null");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2IsNotNull() {
            addCriterion("construction_construction2 is not null");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2EqualTo(String value) {
            addCriterion("construction_construction2 =", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2NotEqualTo(String value) {
            addCriterion("construction_construction2 <>", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2GreaterThan(String value) {
            addCriterion("construction_construction2 >", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2GreaterThanOrEqualTo(String value) {
            addCriterion("construction_construction2 >=", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2LessThan(String value) {
            addCriterion("construction_construction2 <", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2LessThanOrEqualTo(String value) {
            addCriterion("construction_construction2 <=", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2Like(String value) {
            addCriterion("construction_construction2 like", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2NotLike(String value) {
            addCriterion("construction_construction2 not like", value, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2In(List<String> values) {
            addCriterion("construction_construction2 in", values, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2NotIn(List<String> values) {
            addCriterion("construction_construction2 not in", values, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2Between(String value1, String value2) {
            addCriterion("construction_construction2 between", value1, value2, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction2NotBetween(String value1, String value2) {
            addCriterion("construction_construction2 not between", value1, value2, "constructionConstruction2");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3IsNull() {
            addCriterion("construction_construction3 is null");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3IsNotNull() {
            addCriterion("construction_construction3 is not null");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3EqualTo(String value) {
            addCriterion("construction_construction3 =", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3NotEqualTo(String value) {
            addCriterion("construction_construction3 <>", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3GreaterThan(String value) {
            addCriterion("construction_construction3 >", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3GreaterThanOrEqualTo(String value) {
            addCriterion("construction_construction3 >=", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3LessThan(String value) {
            addCriterion("construction_construction3 <", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3LessThanOrEqualTo(String value) {
            addCriterion("construction_construction3 <=", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3Like(String value) {
            addCriterion("construction_construction3 like", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3NotLike(String value) {
            addCriterion("construction_construction3 not like", value, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3In(List<String> values) {
            addCriterion("construction_construction3 in", values, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3NotIn(List<String> values) {
            addCriterion("construction_construction3 not in", values, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3Between(String value1, String value2) {
            addCriterion("construction_construction3 between", value1, value2, "constructionConstruction3");
            return (Criteria) this;
        }

        public Criteria andConstructionConstruction3NotBetween(String value1, String value2) {
            addCriterion("construction_construction3 not between", value1, value2, "constructionConstruction3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}